package com.xiaoma.chat.resource;

public enum Organization {

    TEACHER(1), TOEFL21(2);
    
    private Integer orgId;
    
    private Organization(Integer orgId) {
        this.orgId = orgId;
    }
    
    public Integer orgId() {
        return this.orgId;
    }
    
    public static boolean isExist(int organizationId) {
        return organizationId == TEACHER.orgId || organizationId == TOEFL21.orgId;
    }
    
}
